namespace EFCodeFirst
{
    using System;
    using System.Data.Entity;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Linq;

    public partial class Model1 : DbContext
    {
        public Model1()
            : base("name=Model1")
        {
        }

        public virtual DbSet<EXECUTE_REAL_RX_1_201810> EXECUTE_REAL_RX_1_201810 { get; set; }
        public virtual DbSet<HIN> HIN { get; set; }
        public virtual DbSet<REAL_RX_1_201810> REAL_RX_1_201810 { get; set; }
        public virtual DbSet<REAL_RX_ALLERGY_1_201810> REAL_RX_ALLERGY_1_201810 { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Entity<EXECUTE_REAL_RX_1_201810>()
                .Property(e => e.RX_TOTAL_COST)
                .HasPrecision(20, 4);

            modelBuilder.Entity<EXECUTE_REAL_RX_1_201810>()
                .Property(e => e.WARNING_YN)
                .IsFixedLength()
                .IsUnicode(false);

            modelBuilder.Entity<EXECUTE_REAL_RX_1_201810>()
                .Property(e => e.PATIENT_REP)
                .IsUnicode(false);

            modelBuilder.Entity<EXECUTE_REAL_RX_1_201810>()
                .Property(e => e.PATIENT_REP_IDENT)
                .IsUnicode(false);

            modelBuilder.Entity<EXECUTE_REAL_RX_1_201810>()
                .Property(e => e.RX_REGISTER_NO)
                .IsUnicode(false);

            modelBuilder.Entity<EXECUTE_REAL_RX_1_201810>()
                .Property(e => e.PHYS_NAME)
                .IsUnicode(false);

            modelBuilder.Entity<EXECUTE_REAL_RX_1_201810>()
                .Property(e => e.PATIENT_IDENT)
                .IsUnicode(false);

            modelBuilder.Entity<EXECUTE_REAL_RX_1_201810>()
                .Property(e => e.PATIENT_GENDER)
                .IsFixedLength()
                .IsUnicode(false);

            modelBuilder.Entity<EXECUTE_REAL_RX_1_201810>()
                .Property(e => e.PATIENT_WEIGHT)
                .HasPrecision(8, 4);

            modelBuilder.Entity<EXECUTE_REAL_RX_1_201810>()
                .Property(e => e.RX_ID_GUID)
                .IsUnicode(false);

            modelBuilder.Entity<EXECUTE_REAL_RX_1_201810>()
                .Property(e => e.ABX_FLAG)
                .IsFixedLength()
                .IsUnicode(false);

            modelBuilder.Entity<EXECUTE_REAL_RX_1_201810>()
                .Property(e => e.INJECTION_FLAG)
                .IsFixedLength()
                .IsUnicode(false);

            modelBuilder.Entity<EXECUTE_REAL_RX_1_201810>()
                .Property(e => e.PATENT_FLAG)
                .IsFixedLength()
                .IsUnicode(false);

            modelBuilder.Entity<EXECUTE_REAL_RX_1_201810>()
                .Property(e => e.DRINK_FLAG)
                .IsFixedLength()
                .IsUnicode(false);

            modelBuilder.Entity<EXECUTE_REAL_RX_1_201810>()
                .Property(e => e.RX_REVIEW_AUTO_STATUS)
                .IsFixedLength()
                .IsUnicode(false);

            modelBuilder.Entity<EXECUTE_REAL_RX_1_201810>()
                .Property(e => e.RX_REVIEW_MANUAL_STATUS)
                .IsFixedLength()
                .IsUnicode(false);

            modelBuilder.Entity<EXECUTE_REAL_RX_1_201810>()
                .Property(e => e.RX_REVIEW_FINAL_STATUS)
                .IsFixedLength()
                .IsUnicode(false);

            modelBuilder.Entity<EXECUTE_REAL_RX_1_201810>()
                .Property(e => e.BAR_CODE)
                .IsUnicode(false);

            modelBuilder.Entity<EXECUTE_REAL_RX_1_201810>()
                .Property(e => e.PHARMACY_CODE)
                .IsUnicode(false);

            modelBuilder.Entity<EXECUTE_REAL_RX_1_201810>()
                .Property(e => e.LACTATION_YN)
                .IsFixedLength()
                .IsUnicode(false);

            modelBuilder.Entity<EXECUTE_REAL_RX_1_201810>()
                .Property(e => e.CHARGED_YN)
                .IsFixedLength()
                .IsUnicode(false);

            modelBuilder.Entity<EXECUTE_REAL_RX_1_201810>()
                .Property(e => e.ABX_SPECIAL_YN)
                .IsFixedLength()
                .IsUnicode(false);

            modelBuilder.Entity<EXECUTE_REAL_RX_1_201810>()
                .Property(e => e.ABX_UNION_YN)
                .IsFixedLength()
                .IsUnicode(false);

            modelBuilder.Entity<EXECUTE_REAL_RX_1_201810>()
                .Property(e => e.IS_CACL_INPATIENT_DAYS_YN)
                .IsFixedLength()
                .IsUnicode(false);

            modelBuilder.Entity<REAL_RX_1_201810>()
                .Property(e => e.RX_TOTAL_COST)
                .HasPrecision(20, 4);

            modelBuilder.Entity<REAL_RX_1_201810>()
                .Property(e => e.WARNING_YN)
                .IsFixedLength()
                .IsUnicode(false);

            modelBuilder.Entity<REAL_RX_1_201810>()
                .Property(e => e.PATIENT_REP)
                .IsUnicode(false);

            modelBuilder.Entity<REAL_RX_1_201810>()
                .Property(e => e.PATIENT_REP_IDENT)
                .IsUnicode(false);

            modelBuilder.Entity<REAL_RX_1_201810>()
                .Property(e => e.PATIENT_GENDER)
                .IsFixedLength()
                .IsUnicode(false);

            modelBuilder.Entity<REAL_RX_1_201810>()
                .Property(e => e.PATIENT_WEIGHT)
                .HasPrecision(8, 4);

            modelBuilder.Entity<REAL_RX_1_201810>()
                .Property(e => e.RX_ID_GUID)
                .IsUnicode(false);

            modelBuilder.Entity<REAL_RX_1_201810>()
                .Property(e => e.PATIENT_IDENT)
                .IsUnicode(false);

            modelBuilder.Entity<REAL_RX_1_201810>()
                .Property(e => e.RX_REVIEW_AUTO_STATUS)
                .IsFixedLength()
                .IsUnicode(false);

            modelBuilder.Entity<REAL_RX_1_201810>()
                .Property(e => e.RX_REVIEW_MANUAL_STATUS)
                .IsFixedLength()
                .IsUnicode(false);

            modelBuilder.Entity<REAL_RX_1_201810>()
                .Property(e => e.ABX_FLAG)
                .IsFixedLength()
                .IsUnicode(false);

            modelBuilder.Entity<REAL_RX_1_201810>()
                .Property(e => e.INJECTION_FLAG)
                .IsFixedLength()
                .IsUnicode(false);

            modelBuilder.Entity<REAL_RX_1_201810>()
                .Property(e => e.PATENT_FLAG)
                .IsFixedLength()
                .IsUnicode(false);

            modelBuilder.Entity<REAL_RX_1_201810>()
                .Property(e => e.DRINK_FLAG)
                .IsFixedLength()
                .IsUnicode(false);

            modelBuilder.Entity<REAL_RX_1_201810>()
                .Property(e => e.BAR_CODE)
                .IsUnicode(false);

            modelBuilder.Entity<REAL_RX_1_201810>()
                .Property(e => e.PHARMACY_CODE)
                .IsUnicode(false);

            modelBuilder.Entity<REAL_RX_1_201810>()
                .Property(e => e.LACTATION_YN)
                .IsFixedLength()
                .IsUnicode(false);

            modelBuilder.Entity<REAL_RX_1_201810>()
                .Property(e => e.CHARGED_YN)
                .IsFixedLength()
                .IsUnicode(false);

            modelBuilder.Entity<REAL_RX_1_201810>()
                .Property(e => e.ABX_SPECIAL_YN)
                .IsFixedLength()
                .IsUnicode(false);

            modelBuilder.Entity<REAL_RX_1_201810>()
                .Property(e => e.ABX_UNION_YN)
                .IsFixedLength()
                .IsUnicode(false);

            modelBuilder.Entity<REAL_RX_1_201810>()
                .Property(e => e.DRUG_TOTAL_COST)
                .HasPrecision(20, 4);

            modelBuilder.Entity<REAL_RX_1_201810>()
                .Property(e => e.ABX_DRUG_TOTAL_COST)
                .HasPrecision(20, 4);

            modelBuilder.Entity<REAL_RX_1_201810>()
                .Property(e => e.RX_REVIEW_FINAL_STATUS)
                .IsFixedLength()
                .IsUnicode(false);

            modelBuilder.Entity<REAL_RX_ALLERGY_1_201810>()
                .Property(e => e.ALLERGY_CODE_TYPE)
                .IsUnicode(false);
        }
    }
}
